package work3;

import java.util.Scanner;

public class Palyer extends Role{
    public int input() {

            Scanner scanner = new Scanner(System.in);
            System.out.println("请出拳 0=剪刀 1=布 2=石头");
            int scanner1 = scanner.nextInt();
            switch (scanner1){
                case 0:
                    System.out.println("我出:剪刀");
                    break;
                case 1:
                    System.out.println("我出:布");
                    break;
                case 2:
                    System.out.println("我出:石头");
                    break;
            }
        return scanner1;

            }

}

